﻿using FluentNHibernate.Mapping;
using NH.Core.Model;

namespace NH.Data.Mappings
{
    public class ProductMap : ClassMap<Product>
    {
        public ProductMap()
        {
            Id(p => p.Id).GeneratedBy.Native();
            Map(p => p.Name).Unique().Not.Nullable();
        }
    }
}